package com.itheima.edu.info.manager.A_Entry;

import com.itheima.edu.info.manager.B_Controller.LaoShiController;
import com.itheima.edu.info.manager.B_Controller.StudentController;

import java.util.Scanner;

public class XinXiGuanLiXiTongEntry {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        lo:
        while (true) {
            System.out.println("--------欢迎来到黑马信息管理系统--------");
            System.out.println("1 学生管理系统  2 教师管理系统  3 退出");
            int a = sc.nextInt();
            switch (a) {
                case 1: {
                    StudentController studentController = new StudentController();
                    studentController.jieShou();
                    break;
                }
                case 2: {
                    LaoShiController laoShiController=new LaoShiController();
                    laoShiController.jieshou();
                    break;
                }
                case 3: {
                    System.out.println("感谢使用");
                    break lo;
                }
                default: {
                    System.out.println("输入有误，请重新输入");
                }
            }
        }
    }
}
